<template>
	<view class="page">
		<CustomNav :isBack="false" :topBgColor="topBgColor" title="我的"></CustomNav>
		<view class="user-info" :style="'margin-top:'+mt">
			<image class="user-photo" src="/static/images/avatar.png"></image>
			<view class="user-name">逃命的包子</view>
		</view>
		<view class="menu-block">
			<view @click="navigate('/page_pack/mine/profile')" class="menu-item">
				<image class="menu-icon" src="/static/images/profile.png"></image>
				<view class="menu-name">个人资料</view>
				<view class="iconfont icon-arrow-right"></view>
			</view>
			<view @click="navigate('/page_pack/mine/release')" class="menu-item">
				<image class="menu-icon" src="/static/images/release.png"></image>
				<view class="menu-name">我的发布</view>
				<view class="iconfont icon-arrow-right"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				topBgColor: 'rgba(0,0,0,0)',
			}
		},
		computed: {

		},
		onShow() {


		}
	}
</script>

<style lang="scss" scoped>
	.page {
		overflow: hidden;
		height: 100%;
		background-image: linear-gradient(to bottom, #68C759, #F8F8F8 400px, #F8F8F8 400px, #F8F8F8);
		background-repeat: no-repeat;

		.user-info {
			width: $content-width;
			margin: 0 auto;
			padding-top: 60rpx;
			display: flex;
			align-items: center;

			.user-photo {
				width: 140rpx;
				height: 140rpx;
				border-radius: 50%;
				margin-right: 40rpx;
			}
		}

		.menu-block {
			width: $content-width;
			margin: 0 auto;
			margin-top: 80rpx;

			.menu-item {
				width: 100%;
				background: #fff;
				border-radius: 8px;
				height: 150rpx;
				display: flex;
				align-items: center;
				padding: 30rpx;
				margin-bottom: 20rpx;

				.menu-icon {
					width: 40rpx;
					height: 40rpx;
					margin-right: 20rpx;
				}

				.menu-name {
					flex-grow: 1;
					font-size: 28rpx;
				}

				.iconfont {
					color: #767676;
				}
			}
		}
	}
</style>